package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;
import com.itheima.reggie.domain.SetmealDish;

import java.util.List;

//套餐
public interface SetmealService {

    //分页查询
    Page<Setmeal> findByPage(String name, Integer pageNum, Integer pageSize);

    //保存套餐
    void save(Setmeal setmeal);

    //删除
    void deleteByIds(Long[] ids);

    //回显
    Setmeal findById(Long id);

    //修改
    void update(Setmeal setmeal);

    //批量起售、停售
    void updateByStatus(Integer sales, Long[] ids);

    //查询套餐列表
    List<Setmeal> findList(Long categoryId, Integer status);

    //套餐图片信息
    List<SetmealDish> findImg(Long id);
}
